package com.zhang.sequencegenerate.constant;

import java.util.regex.Pattern;

/**
 * @Description 序列规则常量类
 * @Author Mr.Zhang
 * @Date 2025/5/25 11:13
 * @Version 1.0
 */
public class SequenceRuleConstant {

    /**
     * 默认规则
     */
    public static final String DEFAULT_RULE = "[YYYY]ID00000000";

    /**
     * 序列正则，匹配[ID0*]
     */
    public static final Pattern SEQUENCE = Pattern.compile("\\[ID0*]");

    /**
     * 年份
     */
    public static final String YEAR_FULL = "[YYYY]";

    /**
     * 年份前两位
     */
    public static final String YEAR_SHOT = "[YY]";

    /**
     * 月份
     */
    public static final String MONTH = "[MM]";

    /**
     * 天
     */
    public static final String DAY = "[DD]";

    /**
     * 周数
     */
    public static final String WEEK = "[WW]";

    /**
     * 小时
     */
    public static final String HOUR = "[HH]";

}
